import request from '@/utils/request'

// 电站统计图
export function selectStationReport(query) {
  return request({
    url: '/esDeviceStation/selectStationReport',
    method: 'get',
    params: query
  })
}
// 告警信息分布图
export function selectAlarmReport(query) {
  return request({
    url: '/esDeviceAlarm/selectAlarmReport',
    method: 'get',
    params: query
  })
}
// 储能日报
export function municipalElectricityReportList(query) {
  return request({
    url: '/esDeviceReport/dayPowerReport',
    method: 'get',
    params: query
  })
}
// 储能汇总统计
export function deviceTotalReport(query) {
  return request({
    url: '/esDeviceReport/totalReport',
    method: 'get',
    params: query
  })
}
// 告警数据
export function listEventData(query) {
  return request({
    url: '/data/eventData/list?pageNum=1&pageSize=8',
    method: 'get',
    params: query
  })
}
//设备分布
export function deviceDistribution(query) {
  return request({
    url: '/esDevice/deviceDistribution',
    method: 'get',
    params: query
  })
}
//电站功率实时数据
export function realTimePowerTrend(query) {
  return request({
    url: '/esDeviceReport/realTimePowerTrend',
    method: 'get',
    params: query
  })
}
